package main

import (
	"flag"
	"fmt"
)

var (
	loglevel string
)

func init() {
	const (
		defaultLogLevel = "DEBUG"
		useage          = "set log level value"
	)
	flag.StringVar(&loglevel, "log_type", defaultLogLevel, useage)
	flag.StringVar(&loglevel, "l", defaultLogLevel, useage)
}
func main() {
	flag.Parse()
	fmt.Println("log level:", loglevel)
}
